package org.jeecg.modules.common.feign;

import org.jeecg.common.api.vo.Result;
import org.jeecg.config.FeignConfig;
import org.jeecg.modules.practice.entity.Practice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author wq
 * FeignClient-value 指定微服务中对应的服务名称
 * 只需要将ErpFeignClient注入即可使用
 */
@Component
@FeignClient(value = "jeecg-erp", configuration = FeignConfig.class,fallbackFactory = ErpFeignClientFactory.class)
public interface ErpFeignClient {

    @GetMapping(value = "/practice/practice/getPracByIdCard")
    Result<Practice> getPracByIdCard(@RequestParam(value = "idCard", required = false) String idCard);


}
